package com.mby.controller;

import com.mby.entity.PicsGroup;
import com.mby.entity.Role;
import com.mby.entity.WelcomeWords;
import org.springframework.web.bind.annotation.*;

/**
 * Created by noah on 2018/4/15.
 */
@RestController
public class RoleController extends BaseController{

    @PostMapping(value = "/roles", produces = "application/json; charset=UTF-8")
    public void create_pics_group(@RequestBody Role role){
        respData(mongoTool.addOne(role));
    }
}
